package biz.impl;

import java.util.List;
import java.util.Map;

import dao.UsersDao;

import entity.Dept;
import entity.Juese;
import entity.Users;
import biz.UsersBiz;

public class UsersBizImpl implements UsersBiz {
	private UsersDao usersDao;
	public void addUsers(Users users) {
		usersDao.addUsers(users);
	}

	public void updateUsers(Users users) {
		usersDao.updateUsers(users);
	}

	public void deleteUsers(Long id) {
		usersDao.deleteUsers(id);
	}

	public List<Users> findAllUsers() {
		return usersDao.findAllUsers();
	}

	public Users findOneUsers(Long id) {
		return usersDao.findOneUsers(id);
	}

	public List<Users> findUsersByCondition(Map map,Integer pageNo,Integer size) {
		return usersDao.findUsersByCondition(map, pageNo, size);
	}
	public void setUsersDao(UsersDao usersDao) {
		this.usersDao = usersDao;
	}

	public List<Juese> findAllJueSe() {
		return usersDao.findAllJueSe();
	}

	public List<Dept> findAllDept() {
		return usersDao.findAllDept();
	}

	public Juese findJueSeById(Long id) {
		return usersDao.findJueSeById(id);
	}

	public Dept findDeptById(Long id) {
		return usersDao.findDeptById(id);
	}
	
}
